package com.controllers;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;

public class Test {

//    public static void main(String[] args) {
//
////        结果依次为：请求行，请求头，请求体；
//        try {
//            ServerSocket serverSocket = new ServerSocket(9999);
//            Socket socket = serverSocket.accept();
//
//            InputStream inputStream = socket.getInputStream();
//            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
//
//            String str = null;
//            while ((str=bufferedReader.readLine())!=null){
//                System.out.println(str);
//            }
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//
//    }
}
